package com.jcms.cms.manager.parcel.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jcms.cms.dao.parcel.PriceDicDao;
import com.jcms.cms.manager.parcel.PriceDicManager;

@Service
@Transactional
public class PriceDicManagerImpl implements PriceDicManager {

	@Autowired
	private PriceDicDao dao;

	public PriceDicDao getDao() {
		return dao;
	}

	public void setDao(PriceDicDao dao) {
		this.dao = dao;
	}

	public double getPriceByCompanyAndWeight(int companyId, double weight) {
		return dao.getPriceByCompanyAndWeight(companyId,weight);
	}
}
